home *** CD-ROM | disk | FTP | other *** search
- unit ComClass2Impl;
-
- interface
-
- uses
- Windows, ActiveX, Classes, ComObj, ComServer2_TLB, StdVcl,
- BaseLib_TLB;
-
- type
- TComClass2 = class(TTypedComObject, IFoo)
- protected
- procedure Bar; safecall;
- {Declare IComClass2 methods here}
- end;
-
- implementation
-
- uses
- ComServ, Dialogs;
-
- procedure TComClass2.Bar;
- begin
- ShowMessage('Hello from an instance of TComClass2 in ComServer2.dll')
- end;
-
- initialization
- TTypedComObjectFactory.Create(ComServer, TComClass2, Class_ComClass2,
- ciMultiInstance, tmApartment);
- end.
-